package com.car.controller;

import com.car.pojo.carRoad;
import com.car.service.CarRoadService;
import com.car.service.UserService;
import com.car.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin
@RequestMapping("user")
@Controller
public class UserController {

    @Autowired
    private UserService userService;
    @Autowired
    private CarRoadService carRoadService;

//    @ResponseBody
//    @RequestMapping(value = "getUserList",method = RequestMethod.GET)
//    public Result getUserList(){
//        List<SysUser> list=userService.getUserList();
//        System.out.println(list.toString());
//        return new Result(true,"成功",list);
//    }
//
//    @ResponseBody
//    @RequestMapping(value = "gettest",method = RequestMethod.GET)
//    public Result gettest(){
//        jmsMesmessTmeplate.convertAndSend("mq-lhj","你他妈的");
//        return new Result(true,"成功");
//    }
//
//    @RequestMapping(value = "toYm",method = RequestMethod.GET)
//    public String toYm(Model model){
//        return "abc";
//    }
//
//    @RequestMapping(value = "getRoad",method = RequestMethod.GET)
//    public Result getRoadList(String id){
//        List<carRoad> list=carRoadService.getCarRoadList(id);
//        System.out.println(list.toString());
//        return new Result(true,"成功",list);
//    }
}
